#pragma once

#include <QDialog>
#include "ui_QDialogPaperScore.h"
#include <QTableWidget>
#include <QTimer>

class QDialogPaperScore : public QDialog
{
	Q_OBJECT

public:
	QDialogPaperScore(QString studentnum,int paperNum,QWidget *parent = Q_NULLPTR);
	~QDialogPaperScore();

	void initData();
	void diyUi();
	void createAction();
	void addItemContent(int row, int column, QString content, QTableWidget*  ptableWidget, int color);
	void loadTopicChooseAContent();
	void loadTopicAnswerContent();
	void loadExperimentAnswerContent();
	QString convertPointIndexToName(QString wireAnswer);
	bool getExperimentResult(){ return m_isExperimentAllRight; };

	public slots:
	void slotPushbuttonClicked();
	void slotLineEditTextChanged(QString strText);
	void SlotDelayLoadPic();

private:
	Ui::QDialogPaperScore ui;

	QString m_studentnum;
	int m_chooseScore;
	int m_shortAnswerScore;
	int m_experimentScore;

	int m_paperNum;

	float m_scalRate;
	QString m_strPaperName;
	QTimer m_delayLoadPic;

	bool m_isExperimentAllRight;
};
